﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CKS.Core.Framework;
using CKS.PLC.Core;

namespace CKS.AGV.Core
{
    public static class EventBus
    {


        public static event Action<string> OnAddLog;
        public static event Action<int,string> OnOP10Request;
        public static void AddLog(string message)
        {
            LogHelper.PlcLogger.Information(message);
           OnAddLog?.Invoke(message);
        }

        public static void Op10Request(int line,string message)
        {
            OnOP10Request?.Invoke(line, message);
        }
    }
}
